<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>户信息列表</title>
<link type="text/css" href="css/sign.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<style>
td input {
	background-color: #CCFFFF;
	margin-top: -1px;
	margin-bottom: -1px;
	height: 2em;
	width: 100%;
	border: none;
}
</style>
</head>
<%
	String path = request.getContextPath();
	String ipPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort();
	String basePath = ipPath + path;
%>
<body>
	<h1 align="center">金誉管理流程</h1>
	<div style="margin-left: auto; margin-right: auto; width: 100%">
		<!-- 基本信息 -->
		<form action="<%=basePath%>/saveApply.do" method="post"
			id="fund_edit_form">
			<input type="hidden" id="id" name="id" value="${bean.id }" />
			<table class="tbDetail">
				<tr align="center">
					<td rowspan="3">客户申请信息</td>
					<td>客户姓名:</td>
					<td><input type="text" id="name" name="name"
						value="${bean.name}" /></td>
					<td>统一社会信用代码:</td>
					<td><input type="text" id="code" name="code"
						value="${bean.code}" /></td>
				</tr>
				<tr>
					<td>办公地址:</td>
					<td><input type="text" id="address" name="address"
						value="${bean.address}" /></td>
					<td>工商登记地:</td>
					<td><input type="text" id="register" name="register"
						value="${bean.register}" /></td>
				</tr>
				<tr>
					<td>贷款行:</td>
					<td><input type="text" id="bank" name="bank"
						value="${bean.bank}" /></td>
					<td>申报金额:</td>
					<td><input type="number" step="0.01" id="amount" name="amount"
						value="${bean.amount}" /></td>
				</tr>
				<tr>
					<td colspan="5" style="text-align: right;"><input
						type="submit" value="提交" /></td>
				</tr>
			</table>
		</form>
		<!-- 流程步骤 -->
		<c:forEach begin="1" end="${bean.status }" var="tt">
			<form action="<%=basePath%>/saveDetail.do" method="post">
				<input type="hidden" name="id" value="">
				<input type="hidden" name="status" value="${bean.status }" />
				<input type="hidden" name="apply_id" value="${bean.id }" />
				<table class="tbDetail">
					<tr>
						<td width="15%">${constant.getTitle(tt) }</td>
						<td width="12%">上传文件</td>
						<td width="28%" align="left">
							<c:forEach items="${files_map[tt] }" var="file">
								<a target="_blank" href="<%=ipPath %>/upload_t/apply/${bean.id}/${tt}/${file }">${file}</a>, 
							</c:forEach>
							<a href="<%=basePath%>/fileUpload.do?id=${bean.id}&status=${tt}">上传附件</a>
						</td>
						<td width="12%">意见</td>
						<td><input type="text" id="remarks" name="remarks"
								value="${detailMap[tt].remarks }" /></td>
					</tr>
					<tr>
						<td colspan="5" style="text-align: right;"><input
							type="submit" value="提交" /></td>
					</tr>
				</table>
			</form>
		</c:forEach>
	</div>
</body>
</html>
